﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
using Comm100.Domain.Entity;
using Comm100.Framework.Domain.Entity;

namespace Bot.Domain.Entities
{
    [Table("t_Chatbot_SmartTrigger")]
    public class SmartTrigger: ISoftDelete
    {
        [Key]             
        public Guid Id { get; set; }
        public Guid BotId { get; set; }
        public string Name { get; set; }
        public bool IsEnabled { get; set; }
        public int ConditionExpressionType { get; set; }
        public string LogicalExpression { get; set; }
        public int Order { get; set; }
        public bool IsDeleted { get; set; }
        [NotMapped]
        public virtual ICollection<SmartTriggerCondition> Conditions { get; set; }
        [NotMapped]
        public virtual ICollection<SmartTriggerAction> Actions { get; set; }

    }
}
